package cn.itcast.springboot.config;

import org.springframework.context.annotation.Configuration;

@Configuration // 标记一个类是一个java配置类，相当于之前的一个xml配置文件
// @EnableConfigurationProperties(JdbcProperties.class)
public class JdbcConfiguration {

    // @Autowired
    //private JdbcProperties jdbcProperties;

    /*public JdbcConfiguration(JdbcProperties jdbcProperties){
        this.jdbcProperties = jdbcProperties;
    }*/

/*    @Bean // 相当于之前的bean元素
    @ConfigurationProperties(prefix = "jdbc")
    public DataSource dataSource(){
        DruidDataSource dataSource = new DruidDataSource();
        return dataSource;
    }*/
}
